package com.jinbm.accountservice.controller;

import com.jinbm.accountservice.service.UserService;
import com.jinbm.common.controller.BaseController;
import com.jinbm.common.request.R;
import com.mybatisflex.core.query.QueryWrapper;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录控制层
 *
 * @author jinbm
 * @data 2024/5/27
 * @time 17:09
 * @since JDK1.8
 * @version 1.0.0-SNAPSHOT
 */
@RestController
@RequestMapping("/login")
@Api("登录控制层")
@Slf4j
public class LoginController extends BaseController {

    @Autowired
    private UserService userService;

    @GetMapping("/user")
    public R userLogin(@RequestParam String username, String password){
//        userService.getOne(new QueryWrapper().where(sys_user::getUsername().eq(username)));
        return R.ok("");
    }
}
